<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style lang="scss">
      .box {
        background-color: red;
        border: 1px solid black;
        img {
          display: block;
        }
      }

      .form {
        font-size: 22px;
        input {
          width: 25px;
          height: 25px;
          /* vertical-align: middle; 
            vertical-align: -4px;*/
        }
        span {
            vertical-align: 4px
        }
      }
    </style>
  </head>
  <body>
    <h3 style="line-height: 2">
      消除底部白边的问题，之前是给父元素设置font-size: 0;line-height: 0;解决<br />
      现在是把图片设置成块盒来解决
    </h3>
    <div id="app" class="box">
      <img src="./_20250329134157.jpg" alt="" />
    </div>
    <h3>多个行盒的垂直对齐问题,<br />解决方案：调整任一子元素的vertical-align属性，vertical-align: middle;<br />或者vertical-align: -4px;看情况调整</h3>
    <div class="form">
      <input type="checkbox" />
      <span>全选</span>
    </div>
  </body>
</html>
